package com.tubang.component.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author wsl
 * @since 2017-12-07
 */
@TableName("tb_address")
public class AddressEntity extends BaseEntity<AddressEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编码
     */
	@TableField("user_id")
	private String userId;
	/**
	 * 省份编码
	 */
	@TableField("province_id")
	private String provinceId;
    /**
     * 省份名称
     */
	@TableField("province_name")
	private String provinceName;
    /**
     * 地市编码
     */
	@TableField("city_id")
	private String cityId;
    /**
     * 地市
     */
	@TableField("city_name")
	private String cityName;
    /**
     * 县/区编码
     */
	@TableField("district_id")
	private String districtId;
    /**
     * 县/区
     */
	@TableField("district_name")
	private String districtName;
    /**
     * 详细地址
     */
	@TableField("detail_address")
	private String detailAddress;
    /**
     * 经度
     */
	private String longitude;
    /**
     * 纬度
     */
	private String latitude;
	/**
	 * 收件人
	 */
	private String receiver;
    /**
     * 收件人联系电话
     */
	private String mobile;
    /**
     * 是否为默认地址，1是默认，0不是默认
     */
	@TableField("default_flag")
	private String defaultFlag;

	public String getUserId() {
		return userId;
	}
	
	public AddressEntity setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getProvinceId() {
		return provinceId;
	}

	public AddressEntity setProvinceId(String provinceId) {
		this.provinceId = provinceId;
		return this;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public AddressEntity setProvinceName(String provinceName) {
		this.provinceName = provinceName;
		return this;
	}

	public String getCityId() {
		return cityId;
	}

	public AddressEntity setCityId(String cityId) {
		this.cityId = cityId;
		return this;
	}

	public String getCityName() {
		return cityName;
	}

	public AddressEntity setCityName(String cityName) {
		this.cityName = cityName;
		return this;
	}

	public String getDistrictId() {
		return districtId;
	}

	public AddressEntity setDistrictId(String districtId) {
		this.districtId = districtId;
		return this;
	}

	public String getDistrictName() {
		return districtName;
	}

	public AddressEntity setDistrictName(String districtName) {
		this.districtName = districtName;
		return this;
	}

	public String getDetailAddress() {
		return detailAddress;
	}

	public AddressEntity setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
		return this;
	}

	public String getLongitude() {
		return longitude;
	}

	public AddressEntity setLongitude(String longitude) {
		this.longitude = longitude;
		return this;
	}

	public String getLatitude() {
		return latitude;
	}

	public AddressEntity setLatitude(String latitude) {
		this.latitude = latitude;
		return this;
	}

	public String getReceiver() {
		return receiver;
	}
	
	public AddressEntity setReceiver(String receiver) {
		this.receiver = receiver;
		return this;
	}
	
	public String getMobile() {
		return mobile;
	}

	public AddressEntity setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}

	public String getDefaultFlag() {
		return defaultFlag;
	}

	public AddressEntity setDefaultFlag(String defaultFlag) {
		this.defaultFlag = defaultFlag;
		return this;
	}

	@Override
	public String toString() {
		return "Address{" +
			"userId=" + userId +
			", provinceId=" + provinceId +
			", provinceName=" + provinceName +
			", cityId=" + cityId +
			", cityName=" + cityName +
			", districtId=" + districtId +
			", districtName=" + districtName +
			", detailAddress=" + detailAddress +
			", longitude=" + longitude +
			", latitude=" + latitude +
			", receiver=" + receiver +
			", mobile=" + mobile +
			", defaultFlag=" + defaultFlag +
			"}";
	}
}
